'use strict'


import request from '@/utils/request'

export function getDetail(parameter) {
  return request({
    url: '/TrainPlan/InitNewUnion',
    method: 'get',
    params: parameter
  })
}
// 创建培训计划POST /api/TrainPlan/PostUnion 
export function addTrainPlan(data) {
  return request({
    url: '/TrainPlan/PostUnion',
    method: 'post',
    data
  })
}
// 编辑计划 TrainPlan/GetUnionDetail
export function getEditDetail(parameter) {
  return request({
    url: '/TrainPlan/GetUnionDetail',
    method: 'get',
    params: parameter
  })
}